<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>dev: dev::net::TcpConnection Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">dev
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classdev_1_1net_1_1_tcp_connection.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classdev_1_1net_1_1_tcp_connection-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">dev::net::TcpConnection Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Tcp连接  
 <a href="classdev_1_1net_1_1_tcp_connection.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_tcp_connection_8hpp_source.html">TcpConnection.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for dev::net::TcpConnection:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classdev_1_1net_1_1_tcp_connection.png" usemap="#dev::net::TcpConnection_map" alt=""/>
  <map id="dev::net::TcpConnection_map" name="dev::net::TcpConnection_map">
<area href="classdev_1_1net_1_1_socket_event_handler.html" title="套接字事件处理器 " alt="dev::net::SocketEventHandler" shape="rect" coords="0,56,177,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:adfd3409480b496cc2ce2235c09545f0e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adfd3409480b496cc2ce2235c09545f0e"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>Status</b> { <b>NOTCONNECT</b>, 
<b>CONNECT</b>, 
<b>CLOSING</b>, 
<b>CLOSED</b>
 }<tr class="separator:adfd3409480b496cc2ce2235c09545f0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</td></tr>
<tr class="memitem:a63c52320b0c3e1c174de09fe52592334"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a63c52320b0c3e1c174de09fe52592334"></a>
typedef boost::function&lt; void(<a class="el" href="classdev_1_1net_1_1_tcp_connection.html">TcpConnection</a> &amp;)&gt;&#160;</td><td class="memItemRight" valign="bottom"><b>PassTcpConnectionRefCB</b></td></tr>
<tr class="separator:a63c52320b0c3e1c174de09fe52592334"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8b63353c7f4464ed5005b0e62acf929"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8b63353c7f4464ed5005b0e62acf929"></a>
typedef boost::function&lt; void(<a class="el" href="classdev_1_1net_1_1_tcp_connection.html">TcpConnection</a> &amp;, <a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html">TcpConnectionInputStream</a> &amp;)&gt;&#160;</td><td class="memItemRight" valign="bottom"><b>InputTcpMessageCB</b></td></tr>
<tr class="separator:ad8b63353c7f4464ed5005b0e62acf929"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a43ee94855cd5bc5b46e5bb5b3fbb545c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#a43ee94855cd5bc5b46e5bb5b3fbb545c">TcpConnection</a> (sock_t sock, size_t isSize=1024 *32, size_t osSize=1024 *32)</td></tr>
<tr class="memdesc:a43ee94855cd5bc5b46e5bb5b3fbb545c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tcp连接构造函数  <a href="#a43ee94855cd5bc5b46e5bb5b3fbb545c">More...</a><br /></td></tr>
<tr class="separator:a43ee94855cd5bc5b46e5bb5b3fbb545c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa63e6ea1c2b7e3280f9c0455cf97717e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#aa63e6ea1c2b7e3280f9c0455cf97717e">TcpConnection</a> (sock_t sock, boost::shared_array&lt; char &gt; ibuff, boost::shared_array&lt; char &gt; obuff, size_t isSize, size_t osSize)</td></tr>
<tr class="memdesc:aa63e6ea1c2b7e3280f9c0455cf97717e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tcp连接构造函数  <a href="#aa63e6ea1c2b7e3280f9c0455cf97717e">More...</a><br /></td></tr>
<tr class="separator:aa63e6ea1c2b7e3280f9c0455cf97717e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7169d0396d8b3f9d3bc0bfa651c39f40"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7169d0396d8b3f9d3bc0bfa651c39f40"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#a7169d0396d8b3f9d3bc0bfa651c39f40">handleInput</a> (void)</td></tr>
<tr class="memdesc:a7169d0396d8b3f9d3bc0bfa651c39f40"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理输入 <br /></td></tr>
<tr class="separator:a7169d0396d8b3f9d3bc0bfa651c39f40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada4e4dc8bcdb148eef20a2b479697bbf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada4e4dc8bcdb148eef20a2b479697bbf"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#ada4e4dc8bcdb148eef20a2b479697bbf">handleOutput</a> (void)</td></tr>
<tr class="memdesc:ada4e4dc8bcdb148eef20a2b479697bbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理输出 <br /></td></tr>
<tr class="separator:ada4e4dc8bcdb148eef20a2b479697bbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ad0a49140192c8fdd39c1f65b520009"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ad0a49140192c8fdd39c1f65b520009"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#a5ad0a49140192c8fdd39c1f65b520009">handleException</a> (void)</td></tr>
<tr class="memdesc:a5ad0a49140192c8fdd39c1f65b520009"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理异常 <br /></td></tr>
<tr class="separator:a5ad0a49140192c8fdd39c1f65b520009"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5d67c0a60a1f2c9816e550e4f110e21"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5d67c0a60a1f2c9816e550e4f110e21"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#ad5d67c0a60a1f2c9816e550e4f110e21">handleClose</a> (void)</td></tr>
<tr class="memdesc:ad5d67c0a60a1f2c9816e550e4f110e21"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理关闭(套接字从反应器移除) <br /></td></tr>
<tr class="separator:ad5d67c0a60a1f2c9816e550e4f110e21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa932cbd22a8ecb67a9ecd386d45cf6a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa932cbd22a8ecb67a9ecd386d45cf6a4"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#aa932cbd22a8ecb67a9ecd386d45cf6a4">handleHeartBeat</a> (void)</td></tr>
<tr class="memdesc:aa932cbd22a8ecb67a9ecd386d45cf6a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理心跳 <br /></td></tr>
<tr class="separator:aa932cbd22a8ecb67a9ecd386d45cf6a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57fe0459b4df287e3bd350b219fe040a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdev_1_1net_1_1_socket.html">Socket</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#a57fe0459b4df287e3bd350b219fe040a">getSocket</a> (void)</td></tr>
<tr class="memdesc:a57fe0459b4df287e3bd350b219fe040a"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取连接套接字  <a href="#a57fe0459b4df287e3bd350b219fe040a">More...</a><br /></td></tr>
<tr class="separator:a57fe0459b4df287e3bd350b219fe040a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0a999f61e843d717c53a0601de5b6b6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html">TcpConnectionInputStream</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#aa0a999f61e843d717c53a0601de5b6b6">getInputStream</a> (void)</td></tr>
<tr class="memdesc:aa0a999f61e843d717c53a0601de5b6b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取连接输入流  <a href="#aa0a999f61e843d717c53a0601de5b6b6">More...</a><br /></td></tr>
<tr class="separator:aa0a999f61e843d717c53a0601de5b6b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65525b0c69eab1029c58b8313650c600"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdev_1_1net_1_1_tcp_connection_output_stream.html">TcpConnectionOutputStream</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#a65525b0c69eab1029c58b8313650c600">getOutputStream</a> (void)</td></tr>
<tr class="memdesc:a65525b0c69eab1029c58b8313650c600"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取连接输出流  <a href="#a65525b0c69eab1029c58b8313650c600">More...</a><br /></td></tr>
<tr class="separator:a65525b0c69eab1029c58b8313650c600"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03fe33106b2b3da08735374a73dc4577"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#a03fe33106b2b3da08735374a73dc4577">getId</a> (void) const </td></tr>
<tr class="memdesc:a03fe33106b2b3da08735374a73dc4577"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取连接ID  <a href="#a03fe33106b2b3da08735374a73dc4577">More...</a><br /></td></tr>
<tr class="separator:a03fe33106b2b3da08735374a73dc4577"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00d25aa9a45d083c8687cb21b9ddc749"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdev_1_1net_1_1_event_loop.html">EventLoop</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#a00d25aa9a45d083c8687cb21b9ddc749">getLoop</a> (void) const </td></tr>
<tr class="memdesc:a00d25aa9a45d083c8687cb21b9ddc749"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取连接绑定到的事件循环  <a href="#a00d25aa9a45d083c8687cb21b9ddc749">More...</a><br /></td></tr>
<tr class="separator:a00d25aa9a45d083c8687cb21b9ddc749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe7aa2706938bd73520494664c7527f5"><td class="memItemLeft" align="right" valign="top">Status&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#afe7aa2706938bd73520494664c7527f5">getStatus</a> (void) const </td></tr>
<tr class="memdesc:afe7aa2706938bd73520494664c7527f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取连接状态  <a href="#afe7aa2706938bd73520494664c7527f5">More...</a><br /></td></tr>
<tr class="separator:afe7aa2706938bd73520494664c7527f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61f65d30aed34c170e355ce5841dc1d3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a61f65d30aed34c170e355ce5841dc1d3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html#a61f65d30aed34c170e355ce5841dc1d3">shutdown</a> (void)</td></tr>
<tr class="memdesc:a61f65d30aed34c170e355ce5841dc1d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭连接 <br /></td></tr>
<tr class="separator:a61f65d30aed34c170e355ce5841dc1d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a810e9e3048210a2e29dbd5cdd6f5812d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a810e9e3048210a2e29dbd5cdd6f5812d"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>TcpAcceptor</b></td></tr>
<tr class="separator:a810e9e3048210a2e29dbd5cdd6f5812d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0736aba6eec2f2c2a13494228473b67c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0736aba6eec2f2c2a13494228473b67c"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>TcpWorker</b></td></tr>
<tr class="separator:a0736aba6eec2f2c2a13494228473b67c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ecf3132e8c4bf890c07853cfab7619c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ecf3132e8c4bf890c07853cfab7619c"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>TcpServer</b></td></tr>
<tr class="separator:a3ecf3132e8c4bf890c07853cfab7619c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Tcp连接 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a43ee94855cd5bc5b46e5bb5b3fbb545c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TcpConnection::TcpConnection </td>
          <td>(</td>
          <td class="paramtype">sock_t&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>isSize</em> = <code>1024&#160;*&#160;32</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>osSize</em> = <code>1024&#160;*&#160;32</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Tcp连接构造函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>本地套接字 </td></tr>
    <tr><td class="paramname">isSize</td><td>输入流缓存大小 </td></tr>
    <tr><td class="paramname">osSize</td><td>输出流缓存大小 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa63e6ea1c2b7e3280f9c0455cf97717e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TcpConnection::TcpConnection </td>
          <td>(</td>
          <td class="paramtype">sock_t&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::shared_array&lt; char &gt;&#160;</td>
          <td class="paramname"><em>ibuff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::shared_array&lt; char &gt;&#160;</td>
          <td class="paramname"><em>obuff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>isSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>osSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Tcp连接构造函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>本地套接字 </td></tr>
    <tr><td class="paramname">ibuff</td><td>在外部申请的输入流缓存，其大小必须等于isSize </td></tr>
    <tr><td class="paramname">osSize</td><td>在外部申请的输出流缓存，其大小必须等于osSize </td></tr>
    <tr><td class="paramname">isSize</td><td>输入流缓存大小 </td></tr>
    <tr><td class="paramname">osSize</td><td>输出流缓存大小 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a03fe33106b2b3da08735374a73dc4577"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int dev::net::TcpConnection::getId </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取连接ID </p>
<dl class="section return"><dt>Returns</dt><dd>int </dd></dl>

</div>
</div>
<a class="anchor" id="aa0a999f61e843d717c53a0601de5b6b6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html">TcpConnectionInputStream</a>&amp; dev::net::TcpConnection::getInputStream </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取连接输入流 </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html" title="Tcp连接输入流 ">TcpConnectionInputStream</a>&amp; </dd></dl>

</div>
</div>
<a class="anchor" id="a00d25aa9a45d083c8687cb21b9ddc749"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdev_1_1net_1_1_event_loop.html">EventLoop</a>* dev::net::TcpConnection::getLoop </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取连接绑定到的事件循环 </p>
<dl class="section return"><dt>Returns</dt><dd>EventLoop* </dd></dl>

</div>
</div>
<a class="anchor" id="a65525b0c69eab1029c58b8313650c600"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdev_1_1net_1_1_tcp_connection_output_stream.html">TcpConnectionOutputStream</a>&amp; dev::net::TcpConnection::getOutputStream </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取连接输出流 </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classdev_1_1net_1_1_tcp_connection_output_stream.html" title="Tcp连接输出流 ">TcpConnectionOutputStream</a>&amp; </dd></dl>

</div>
</div>
<a class="anchor" id="a57fe0459b4df287e3bd350b219fe040a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdev_1_1net_1_1_socket.html">Socket</a>&amp; dev::net::TcpConnection::getSocket </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取连接套接字 </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classdev_1_1net_1_1_socket.html" title="套接字 ">Socket</a>&amp; </dd></dl>

</div>
</div>
<a class="anchor" id="afe7aa2706938bd73520494664c7527f5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Status dev::net::TcpConnection::getStatus </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取连接状态 </p>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>dev/dev/net/<a class="el" href="_tcp_connection_8hpp_source.html">TcpConnection.hpp</a></li>
<li>dev/src/net/TcpConnection.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>dev</b></li><li class="navelem"><b>net</b></li><li class="navelem"><a class="el" href="classdev_1_1net_1_1_tcp_connection.html">TcpConnection</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
  </ul>
</div>
</body>
</html>
